#pragma once

#include "../umlmodel_global.h"

#include <memory>
#include <vector>

#include "InstanceSpecification.h"

using std::make_shared;
using std::shared_ptr;
using std::vector;

namespace uml {
class Enumeration;

/// <summary>
/// EnumerationLiteral
/// An EnumerationLiteral is a user-defined data value for an Enumeration.
/// </summary>
class UMLMODEL_EXPORT EnumerationLiteral : public InstanceSpecification {

public: // Constructors and destructors
    explicit EnumerationLiteral(const QString& umlType="uml::EnumerationLiteral");

public: // JsonSerializable override
    void fromJson(const QJsonObject& json, QStringList& errorList) override;
    void toJson(QJsonObject& json) override;

public: // Methods
public: // Properties
    /// <summary>
    /// classifier getter
    /// The classifier of this EnumerationLiteral derived to be equal to its
    /// Enumeration.
    /// </summary>
    shared_ptr<Enumeration> classifier() const;

    /// <summary>
    /// classifier setter
    /// The classifier of this EnumerationLiteral derived to be equal to its
    /// Enumeration.
    /// </summary>
    void setClassifier(shared_ptr<Enumeration> value);

    /// <summary>
    /// enumeration getter
    /// The Enumeration that this EnumerationLiteral is a member of.
    /// </summary>
    shared_ptr<Enumeration> enumeration() const;

    /// <summary>
    /// enumeration setter
    /// The Enumeration that this EnumerationLiteral is a member of.
    /// </summary>
    void setEnumeration(shared_ptr<Enumeration> value);

private: // Fields
    /// <summary>
    /// classifier
    /// The classifier of this EnumerationLiteral derived to be equal to its
    /// Enumeration.
    /// </summary>
    shared_ptr<Enumeration> classifier_;

    /// <summary>
    /// enumeration
    /// The Enumeration that this EnumerationLiteral is a member of.
    /// </summary>
    shared_ptr<Enumeration> enumeration_;

};

} // namespace uml
